package com.zsrt.devbase.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.zsrt.devbase.common.annotation.Paging;
import com.zsrt.devbase.common.utils.ConstantDefine;
import com.zsrt.devbase.dto.RoleDTO;
import com.zsrt.devbase.service.RoleService;

/** 
 * @author leixin  
 * @Email leixin821792669@gmail.com
 * @date 2017年5月18日 上午11:33:17
 * @version 1.0
 */
@Service
public class RoleServiceImpl extends BaseService<RoleDTO> implements RoleService{

	@Override
	public Map<String, Object> check(RoleDTO entity) {
		// TODO Auto-generated method stub
		return null;
	}

	@Paging
	@Override
	public Map<String, Object> queryByEntity(RoleDTO entity) {
		Map<String, Object> result = new HashMap<>();
		List<RoleDTO> list = baseDAO.select(entity);
		result.put(ConstantDefine.ROWS, list);
		return result;
	}

}
